Skip to content

Probability plot #1501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Conversation

orbitfold
Copy link
Contributor

No description provided.

@wesm
Copy link
Member

wesm commented Jun 21, 2012

Hi @orbitfold I won't accept this PR until we decide how to manage plotting code of this variety between statsmodels (e.g. the more mature qqplot in https://github.com/statsmodels/statsmodels/blob/master/statsmodels/graphics/gofplots.py) and pandas. Can you please engage the statsmodels developers on the mailing list to get the conversation started?

@wesm
Copy link
Member

wesm commented Jul 11, 2012

Hi @orbitfold just pinging you about this. Can you e-mail the statsmodels mailing list to bring up the overlap in functionality so we can make some decisions about how to proceed?

@orbitfold
Copy link
Contributor Author

Done.

@rgommers
Copy link
Contributor

<CC'ing myself>

Would be good to finish the conversation on the statsmodels mailing list.

@wesm
Copy link
Member

wesm commented Aug 8, 2012

Bump

@orbitfold
Copy link
Contributor Author

I've updated the function as per suggestions on the mailing list.

@orbitfold
Copy link
Contributor Author

Is there something else I can/should do about this?

@rgommers
Copy link
Contributor

I had expected that discussion to end with a conclusion, preferably one a bit broader than just for this function. Something like:

  • it is OK to duplicate some plotting functions between pandas and statsmodels, general idea is to use the same API where possible; keeping the one in pandas basic and the ones in statsmodels with more options.
  • all the plot functions in pandas should return a figure like in statsmodels. It's a bit mixed now, sometimes an axis (or list of axes?), sometimes a figure.

@jseabold
Copy link
Contributor

I thought the conversation was concluded on the mailing list with your and @josef-pkt's stamp of approval "[pystatsmodels] probability plot"?

Your points seem to make sense to me.

Some worries that I'm not really going to champion since I first brought them up months ago. It's going to cause some confusion for users, and I fear there will inevitably be PRs for pandas to enhance functionality for things like qqplot into areas we already cover. Ideally, I would think pandas would be used for visualization of data - not things that require estimation and inference - but, alas, it doesn't make sense to fight plots going into pandas and there's really not a clear cut line except that pandas can't have a reverse dependence on statsmodels.

@rgommers
Copy link
Contributor

@jseabold yes for this function, so the PR looks fine as is. However, what didn't get finished is (quoting Wes) "decide how to manage plotting code of this variety between statsmodels ... and pandas".

Besides cross-referencing in the See Also sections, I don't see much that can be done to avoid duplicate effort.

@jseabold
Copy link
Contributor

Oh, sure. I agree with your points then. Always return figs (this was from JDH advice). Also using intersphinx and See Also sections in the docs should hopefully help. (We just need to watch as new plotting functionality is added.)

@jreback
Copy link
Contributor

jreback commented Sep 26, 2013

@orbitfold closing this, if you want to restart this, pls reopen/do a new PR (as master has changed a lot)..thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants